package com.train.daily.req.carriage;

import com.train.common.group.AddGroup;
import com.train.common.group.EditGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * DailyTrainCarriageAddOrEditReq
 * @author baitiaojun
 * @createDate 2025-03-01 21:20:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DailyTrainCarriageAddOrEditReq {


    /**
     * id
     */
    @NotNull(message = "【id】不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 日期
     */
    @NotNull(message = "【日期】不能为空", groups = {AddGroup.class, EditGroup.class})
    private LocalDate date;

    /**
     * 车次编号
     */
    @NotBlank(message = "【车次编号】不能为空", groups = {AddGroup.class, EditGroup.class})
    private String trainCode;

    /**
     * 箱序
     */
    @NotNull(message = "【箱序】不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer index;

    /**
     * 座位类型|枚举[SeatTypeEnum]
     */
    @NotBlank(message = "【座位类型】不能为空", groups = {AddGroup.class, EditGroup.class})
    private String seatType;

    /**
     * 排数
     */
    @NotNull(message = "【排数】不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer rowCount;
}
